
import 'package:flutter/cupertino.dart';


class VoteModel extends ChangeNotifier{

  List<String> codeList = [];

  // VoteModel(super.value);

  String getVoteContent(){
    codeList.sort();
    return codeList.join(",");
  }

  storeCode(String code){
    if(codeList.contains(code)){
      codeList.remove(code);
    } else {
      codeList.add(code);
    }
    notifyListeners();
  }

}